<template>
	<view class="flex-col homepage">
		<view class="flex-row wrapper">
			<view class="wraper-col">
				<uni-icons style="top: 10rpx;left: 6rpx;" type="settings-filled" size="25"></uni-icons>
			</view>
			<view class="u-line-1 text" v-model="adds">{{adds.type}}</view>
			<view class="u-line-1 text-two" @click="ckzd">查看账单></view>
		</view>
		<view class="flex-col wrapper-two">
			<view class="flex-row wraper-row">
				<view class="u-line-1 text-three">可用余额</view>
				<view class="u-line-1 text-four" v-model="adds">￥{{adds.balance}}.00</view>
			</view>
			<view class="flex-row wraper-row-two">
				<view class="u-line-1 text-five">户号</view>
				<view class="u-line-1 text-six" v-model="adds">{{adds.prepaidNumber}}</view>
			</view>
			<view class="flex-row wraper-row-three">
				<view class="u-line-1 text-seven">户主</view>
				<view class="u-line-1 text-eight" v-model="adds">{{adds.userName}}</view>
			</view>
			<view class="flex-row wraper-row-four">
				<view class="u-line-1 text-nine">缴费单位</view>
				<view class="u-line-1 text-ten">联合企业公司</view>
			</view>
		</view>
		<u-button class="button" type="success">
			立即充值
		</u-button>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				adds: {}
			}
		},
		onLoad(params) {
			this.adds = JSON.parse(params.j)
		},
		methods: {
			ckzd(){
				uni.navigateTo({
					url: '/pages/gwb/Lifepayhistory'
				})
			}
		}
	}
</script>
<style lang="scss" scoped>
	/** 全局样式-开始,建议放在公共css样式文件中,比如common.css 或app.vue文件 */

	html,
	body {
		margin: 0;
		width: 100%;
		height: 100%;
		font-size: 16px
	}

	view,
	text,
	image {
		position: relative;
		box-sizing: border-box;
		flex-shrink: 0;
	}

	.flex-col {
		display: flex;
		align-items: flex-start;
		flex-direction: column;
	}

	.flex-row {
		display: flex;
		align-items: flex-start;
	}

	.flex-col .flex-row {
		width: 100%
	}

	/** 全局样式-结束*/

	.homepage {
		padding: 48rpx 0rpx 830rpx 36rpx;
		background-color: #dbf1e1;

		.wrapper {
			width: 682rpx;
			margin: 0rpx 0rpx 52rpx 2rpx;
			padding: 32rpx 0rpx 28rpx 10rpx;
			border-width: 2rpx;
			border-style: solid;
			border-color: rgba(232, 232, 232, 1);
			border: #c8c9cc 1px solid;
			border-radius: 18rpx;
			background: #f3f4f6;

			.wraper-col {
				width: 62rpx;
				height: 62rpx;
				margin: 6rpx 10rpx 0rpx 15rpx;
				border-radius: 40rpx;
				background: #71d5a1;
			}

			.text {
				width: 108rpx;
				margin: 10rpx 302rpx 0rpx 0rpx;
				font-size: 34rpx;
				font-weight: 600;
				color: rgba(115, 115, 115, 1);
			}

			.text-two {
				width: 164rpx;
				margin-top: 10rpx;
				font-size: 30rpx;
				font-weight: 600;
				color: rgba(0, 124, 241, 1);

			}
		}

		.wrapper-two {
			width: 684rpx;
			margin-bottom: 76rpx;
			padding: 32rpx 0rpx 40rpx 26rpx;
			border-width: 2rpx;
			border-style: solid;
			border-color: rgba(213, 213, 213, 1);
			border-radius: 18rpx;
			background: #f3f4f6;

			.wraper-row {
				width: 623rpx;
				height: 80rpx;
				justify-content: space-between;
				margin: 0rpx 0rpx 30rpx 2rpx;
				padding-right: 1rpx;
				border-bottom: #c8c9cc 1px solid;

				.text-three {
					width: 154rpx;
					margin-top: 6rpx;
					font-size: 28rpx;
					font-weight: 700;
					color: rgba(108, 108, 108, 1);
				}

				.text-four {
					width: 250rpx;
					font-size: 36rpx;
					font-weight: 600;
					color: rgba(11, 11, 11, 1);
				}
			}

			.wraper-row-two {
				width: 360rpx;
				justify-content: space-between;
				margin-bottom: 20rpx;

				.text-five {
					width: 72rpx;
					font-size: 30rpx;
					font-weight: 700;
					color: rgba(167, 167, 167, 1);
				}

				.text-six {
					width: 226rpx;
					font-size: 28rpx;
					font-weight: 600;
					color: rgba(167, 167, 167, 1);
				}
			}

			.wraper-row-three {
				width: 359rpx;
				justify-content: space-between;
				margin-bottom: 20rpx;
				padding-right: 1rpx;

				.text-seven {
					width: 72rpx;
					font-size: 30rpx;
					font-weight: 700;
					color: rgba(167, 167, 167, 1);
				}

				.text-eight {
					width: 226rpx;
					font-size: 28rpx;
					font-weight: 600;
					color: rgba(167, 167, 167, 1);
				}
			}

			.wraper-row-four {
				width: 382rpx;
				justify-content: space-between;
				padding-right: 1rpx;

				.text-nine {
					width: 132rpx;
					font-size: 30rpx;
					font-weight: 700;
					color: rgba(167, 167, 167, 1);
				}

				.text-ten {
					width: 226rpx;
					font-size: 28rpx;
					font-weight: 600;
					color: rgba(167, 167, 167, 1);
				}
			}
		}

		.button {
			width: 670rpx;
		}
	}
</style>
